package com.docmgmt.mvp.ragflow.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotBlank;
import java.util.List;

/**
 * 更新 Chunk 请求 DTO
 * 
 * PUT /api/v1/datasets/{dataset_id}/documents/{document_id}/chunks/{chunk_id}
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UpdateChunkRequest {

    /**
     * Chunk内容
     */
    @NotBlank(message = "Chunk内容不能为空")
    private String content;

    /**
     * 重要关键词
     */
    @JsonProperty("important_keywords")
    private List<String> importantKeywords;

    /**
     * 是否可用
     */
    private Boolean available;
}

